// /$$
//  $ @Author: YourName
//  $ @Date: 2024-05-12 11:32:07
//  $ @LastEditTime: 2024-05-12 13:27:19
//  $ @LastEditors: YourName
//  $ @Description: 
//  $ @FilePath: \冲锋号影视\vite.config.js
//  $ @版权声明
//  $/
import { fileURLToPath, URL } from 'node:url'

import { defineConfig } from 'vite'
import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
import vue from '@vitejs/plugin-vue'
// import zipPack from "vite-plugin-zip-pack"

export default defineConfig({
  plugins: [
    vue(),
    AutoImport({
      resolvers: [ElementPlusResolver()],
    }),
    Components({
      resolvers: [ElementPlusResolver()],
    }),
  //   zipPack({
  //     inDir: 'dist',
  //     outDir: 'archive',
  //     outFileName: 'distFormat.zip',
  //     pathPrefix: ''
  // })
  ],
  resolve: {
    alias: {
      '@': fileURLToPath(new URL('./src', import.meta.url))
    }
  },
  server:{
    https:false,
    port:3000,
    host:'0.0.0.0'
  },
})
